package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.Strategy;
import cn.wolfcode.luowowo.domain.Travel;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 旅游日记 MongoDB数据的接口
 */
@Repository
public interface TravelRepository extends MongoRepository<Travel, String> {

    List<Strategy> findByDestIdOrderByViewnumDesc(String destId, PageRequest pageable);
}
